/**
 * Author: ligj@mapbar.com
 * Create Time: 2018/01/10 17:09
 * Description:
 */

import Login from './views/Login/Login'
import UpdatePassword from "./views/SystemSetting/UpdatePassword.vue"
import Home from './views/Home'

// 运营看板
import OperationsPanel from './views/OperationsPanel/OperationsPanel'

// 保司管理
import insuranceInfo from './views/InsuranceManagement/insuranceInfo'
import editInsurance from './views/InsuranceManagement/editInsurance'

// 车厂管理
import carFactoryInfo from './views/CarFactoryManagement/carFactoryInfo'
import editCarFactory from './views/CarFactoryManagement/editCarFactory'

// 保单管理
import policyInfo from './views/PolicyManagement/policyInfo'
import editPolicy from './views/PolicyManagement/editPolicy'

// 车辆管理
import depotInfo from './views/DepotManagement/depotInfo'
import depotDetail from './views/DepotManagement/depotDetail'

// 避险区域数据
import hedgingAreaInfo from './views/HedgingAreaManagement/hedgingAreaInfo'
import hedgingAreaDetail from './views/HedgingAreaManagement/hedgingAreaDetail'
import positionDetail from './views/HedgingAreaManagement/positionDetail'

// 结算管理
import settlementInfo from './views/SettlementManagement/settlementInfo'
import settlementDetail from './views/SettlementManagement/settlementDetail'

// 系统管理
import accountInfo from './views/SystemManagement/accountInfo'
import editAccount from './views/SystemManagement/editAccount'
import operationLogInfo from './views/SystemManagement/operationLogInfo'


export default [
    { path: '/Login', name: 'login', component: Login }, 
    {
        path: '/', component: Home,
        children: [
            { path: '/OperationsPanel', name: 'OperationsPanel', component: OperationsPanel, meta: { title: '运营看板' } },
            { path: '/insuranceInfo', name: 'insuranceInfo', component: insuranceInfo, meta: { title: '保司信息', keepAlive: false } },
            { path: '/editInsurance', name: 'editInsurance', component: editInsurance, meta: { title: '编辑保司信息', isModal: true, modalWidth: '800px' } },
            { path: '/carFactoryInfo', name: 'carFactoryInfo', component: carFactoryInfo, meta: { title: '车厂信息', keepAlive: false } },
            { path: '/editCarFactory', name: 'editCarFactory', component: editCarFactory, meta: { title: '编辑车厂信息', isModal: true, modalWidth: '800px' } },
            { path: '/policyInfo', name: 'policyInfo', component: policyInfo, meta: { title: '保单信息', keepAlive: false } },
            { path: '/editPolicy', name: 'editPolicy', component: editPolicy, meta: { title: '编辑保单信息' } },
            { path: '/depotInfo', name: 'depotInfo', component: depotInfo, meta: { title: '车辆列表' } },
            { path: '/depotDetail', name: 'depotDetail', component: depotDetail, meta: { title: '车辆详情' } },
            { path: '/positionDetail', name: 'positionDetail', component: positionDetail, meta: { title: '位置页' } },
            { path: '/hedgingAreaInfo', name: 'hedgingAreaInfo', component: hedgingAreaInfo, meta: { title: '避险区域列表' } },
            { path: '/hedgingAreaDetail', name: 'hedgingAreaDetail', component: hedgingAreaDetail, meta: { title: '位置详情' } },
            { path: '/settlementInfo', name: 'settlementInfo', component: settlementInfo, meta: { title: '结算列表' } },
            { path: '/settlementDetail', name: 'settlementDetail', component: settlementDetail, meta: { title: '结算详情' } },
            { path: '/accountInfo', name: 'accountInfo', component: accountInfo, meta: { title: '账号信息', keepAlive: false } },
            { path: '/editAccount', name: 'editAccount', component: editAccount, meta: { title: '编辑账号信息', isModal: true, modalWidth: '800px' } },
            { path: '/operationLogInfo', name: 'operationLogInfo', component: operationLogInfo, meta: { title: '操作日志', keepAlive: false } },
            { path: '/updatePassword', name: 'updatePassword', component: UpdatePassword, meta: { title: '修改密码', isModal: true, modalWidth: '500px' } },
        ]
    },
    {path: '*', redirect: '/'}
]
